#include "tube_2x2.h"

// 创建Tube_2x2实例的函数
sprite* createTube_2x2() {
    return new tube_2x2();
}

// 构造函数
tube_2x2::tube_2x2() {
    this->width = GRID_WIDTH * 2;
    this->height = GRID_HEIGHT * 2;
    this->isCollisionable = true;// 阻塞
    this->spriteType = sprite_type_tube_2x2;
    this->imgTube_2x2 = new IMAGE;
    this->imgTube_2x2_mask = new IMAGE;

    loadimage(this->imgTube_2x2, "img/tube_2x2.png");
    loadimage(this->imgTube_2x2_mask, "img/tube_2x2_mask.png");
};

// 析构函数
tube_2x2::~tube_2x2() {
    delete this->imgTube_2x2;
}

// 绘制函数
void tube_2x2::draw() {
    putTransparentImage(this->x, this->y, this->imgTube_2x2_mask, this->imgTube_2x2);
}

// 更新函数
void tube_2x2::update() {

}